<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "robot_account".
 *
 * @property string $id
 * @property string $name
 * @property string $passwd
 * @property string $state
 * @property string $user_robot_no
 */
class RobotAccount extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'robot_account';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['id'], 'string', 'max' => 36],
            [['name', 'user_robot_no'], 'string', 'max' => 60],
            [['passwd', 'state'], 'string', 'max' => 10],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'passwd' => 'Passwd',
            'state' => 'State',
            'user_robot_no' => 'User Robot No',
        ];
    }
}
